<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>层次(关系)选择器</title>
    <style>
        /* 后代选择器  儿子+孙子 */
        ul li {
            /* border: 1px solid red; */
            color:red;
        }
    </style>
</head>

<body>
    <ul>
        <li>
            <h1>h1</h1>
            <p>p1</p>
            <ul>
                <li>
                    <span>1</span>
                </li>
            </ul>
        </li>
        <li>
            <h1>h1</h1>
            <p>p1</p>
        </li>
    </ul>
</body>

</html>